<html>
<head>
<meta name="generator" content="PhpED Version 5.5 (Build 5517)">
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title><?php echo $title; ?></title>
<link rel="stylesheet" rev="stylesheet" href="/qsf_mvc/app/views/css/cSite_common.css" type="text/css" media="screen" />
<link rel="stylesheet" rev="stylesheet" href="/qsf_mvc/app/views/css/style.css" type="text/css" media="screen" />
</head>
<body>
<?php echo $desc['table'].' '.$desc['engine'].' '.$desc['charset']; ?><br>
<form action='/qsf_mvc/index/index/filed/' method="post">
<input type="hidden" name="qsf_db"  value="<?php echo $desc['db']; ?>">    
<input type="hidden" name="qsf_table"  value="<?php echo $desc['table']; ?>">
<input type="hidden" name="qsf_charset"  value="<?php echo $desc['charset']; ?>">
唯一标识：
<?php foreach($desc['index'] as $k => $v) {?>
<?php if ( ($v['type']  == 'primary' || $v['type']  == 'unique') && $v['value'][0] == 1) {?>
    <?php echo $v['indexname']; ?> <input type="radio" name="ukey"    <?php if ( $v['type']  == 'primary') {?>checked="checked"<?php }?>       value="<?php echo $v['indexname']; ?>">
<?php }?>
<?php }?>   
或  <input type="txt"   name="ukey1"   value="" size="1"> 
<table width="100%">
<tr><th>字段</th><th>简称</th><th>表单类型</th><th>表单长度</th><th>列表字段</th><th>添加字段</th><th>必填字段</th><th>修改字段</th><th>内容字段</th></tr>  
<?php foreach($desc['columns'] as $k => $v) {?>   
<tr align="center">
    <td align="left"><input type="hidden" name="<?php echo $v['field']; ?>[enname]"  value="<?php echo $v['field']; ?>"><?php echo $v['field']; ?></td>  
    <td><input type="txt"      name="<?php echo $v['field']; ?>[cnname]"  value="<?php if ( $v['comment'] != '') {?><?php echo $v['comment']; ?><?php }else {?><?php echo $v['field']; ?><?php }?>" size="10"></td>
    <td><select name="<?php echo $v['field']; ?>[form]" style="width:100px">
          <option value="text" selected="selected">单行文本框</option>
          <option value="id">特殊标识</option>
          <option value="password">密码框</option>
          <option value="hidden">隐藏域</option>
          <option value="select">下拉框</option>
          <option value="radio">单选框</option>
          <option value="checkbox">复选框</option>
          <option value="textarea">多行文本框</option>
          <option value="editor">编辑器</option>
          <option value="img">图片</option>
          <option value="flash">FLASH文件</option>
          <option value="file">文件</option>
          <option value="date">日期</option>
          <option value="color">颜色</option>
        </select>
    </td>
    <td><input type="txt"      name="<?php echo $v['field']; ?>[formlength]"  value="<?php echo $v['length']; ?>" size="1"></td>    
    <td><input type="checkbox" name="<?php echo $v['field']; ?>[list]"    checked="checked"       value="1"></td>
    <td><input type="checkbox" name="<?php echo $v['field']; ?>[add]"     checked="checked"       value="1"></td>
    <td><input type="checkbox" name="<?php echo $v['field']; ?>[need]"  <?php if ( $v['null'] == 'no') {?>checked="checked"<?php }?>         value="1"></td> 
    <td><input type="checkbox" name="<?php echo $v['field']; ?>[edit]"    checked="checked"       value="1"></td>
    <td><input type="checkbox" name="<?php echo $v['field']; ?>[view]"    checked="checked"       value="1"></td>
</tr>
<?php }?>
</table>  
<input type="submit" name="submit" value="提交" /></span> 
</form> 
</body>
</html>



